package com.company;

import javax.naming.Name;

public class Main {

    public static void main(String[] args) throws InterruptedException {
	// write your code here
//
//        MyThread myThread=new MyThread();
//        myThread.start();
//
//
//
//        Mythread2 mythread2=new Mythread2();
//        Thread thread=new Thread(mythread2);
//        thread.start();

        TicketsThread thread1=new TicketsThread();

        Thread t1=new Thread(thread1,"小青");
        Thread t2=new Thread(thread1,"黄牛");
        Thread t3=new Thread(thread1,"代理");
        t2.join();
        t1.start();
        t2.start();
        t3.join();
        t3.start();

    }
}
